import { _decorator, Component, Node, resources } from 'cc';

const { ccclass, property } = _decorator;
console.error("顶层报错");
testError();
@ccclass('NewComponent')
export class NewComponent extends Component {
    start() {
        resources.load("jdfjsa/fsad")
        new Promise(() => {
            gaio();
            // console.error("报错")
        })
        console.error("报错")
        new Error("sss")
        console.asse("ss")

    }

    update(deltaTime: number) {

    }
}
function testError() {
    let a = 1 + 33;
    testError2();
}
function testError2() {
    console.error("嵌套调用报错")
}

